package day09_zy;

public class Student extends Person {
private double math;
private double english;
public Student() {
	super();
}

	
public Student(String name, String address, char sex, int age,double math,double english) {
	super( name, address, sex,age);
	this.math = math;
	this.english =english;

}
@Override
public String toString() {
	//super.tostring()调用父类的tostring方法
	return super.toString()+"Student [math=" + math + ", english=" + english + "]";
}

}
